package com.itheima.test.code14;

/**
 * @author df
 * @date 2021/8/22
 */
public class Demo05 {
    public static void main(String[] args) {
        Ticket01 ticket01 = new Ticket01();
        Thread t1 = new Thread(ticket01);
        Thread t2 = new Thread(ticket01);
        Thread t3 = new Thread(ticket01);

        t1.setName("窗口一");
        t2.setName("窗口二");
        t3.setName("窗口三");


        t1.start();
        t2.start();
        t3.start();

    }
}
